﻿using Admin.Core.Common.BaseModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Text;

namespace Admin.Core.Model.Admin
{
    /// <summary>
    /// 用户租户
    /// </summary>
    [Table(Name = "AD_USER_TENANT")]
    public class UserTenantEntity:EntityNTAdd
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        [Column(Name = "USERID")]
        public long UserId { get; set; }

        public UserEntity User { get; set; }

        /// <summary>
        /// 租户Id
        /// </summary>
        [Column(Name = "TENANTID")]
        public long TenantId { get; set; }

        public TenantEntity Tenant { get; set; }


    }
}
